package vo;

import java.util.Date;
import java.util.List;

import logic.teacherQuery_logic.Teacher;
import logic.utility_logic.CourseQueryLogicsvFactory;
import logicsv.courseQuery_logicsv.CourseQueryLogicsv;

public class TeacherVO {
	private Teacher teacher;
	private List<CourseVO> courseList;
	private CourseQueryLogicsv courseQL;
	public TeacherVO(String teacherID) {
		super();
		teacher = new Teacher(teacherID);
		courseQL = new CourseQueryLogicsvFactory().create();
		courseList = courseQL.getAllCouOfTea(teacherID);
	}
	public String getTeacherID(){
		return teacher.getTeacherID();
	}
	public String getName(){
		return teacher.getName();
	}
	public String getCollegeID(){
		return teacher.getCollegeID();
	}
	public int getWorkStartYear(){
		return teacher.getWorkStartYear();
	}
	public Date getBirthday(){
		return teacher.getBirthday();
	}
	public List<CourseVO> getCourses() {
		return courseList;
	}
}
